package server.business.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import server.business.pojo.DiseaseType;
import server.business.service.DiseaseTypeService;

import java.util.List;
@Controller
@RequestMapping("/diagnosis")

public class DiseaseTypeController {
    @Autowired
    private DiseaseTypeService diseaseTypeService;

    /**
     * 获取临床诊断数据字典
     * @return
     */
    @GetMapping("/normal/query")
    @ResponseBody
    public List<DiseaseType> getDiagnosisInfo(){
        return  diseaseTypeService.list();
    }
}
